package Day10.extends08;

public class Demo {
    public static void main(String[] args) {
       // Sharp sharp=new Sharp();
        Rectangle r = new Rectangle();
        r.width = 10;
        r.length = 12;
        System.out.println(r.getPerime());
        System.out.println(r.getArea());
        System.out.println("-------------------");

        Square s = new Square();
        s.side = 16;
        System.out.println(s.getArea());
        System.out.println(s.getPerime());
    }
}
